import { onMounted, ref } from "vue";
import axios from "axios";

export function getUsers() {
    const users = ref(['周权'])
    const getUserlist = async() => {
        const res = await axios.post('/src/data/yunhan.json')
        
    }
 
    return {
        users,getUserlist
    }
}

// const getUserlist = () => {
//     return new Promise(resolve => {
//         fetch('data/chart.json').then(res => {
//             resolve(res)
//                 })
// })

// }


//     const resp = await getUserlist()    
//     console.log("resp",resp);

